﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Main : MonoBehaviour {

	// Use this for initialization
	void Start () {
        Screen.SetResolution(1920, 1080, true);
        Screen.fullScreen = true;
        UIManager.Instance.Push("LoadPanel");
        StartCoroutine(WaitForManager());
	}
    IEnumerator WaitForManager()
    {
        while (!ResourceManager.Instance.BeReady)
        {
            yield return new WaitForFixedUpdate();
        }
        UIManager.Instance.Pop();
        UIManager.Instance.Push("ChoosePanel");
    }
}
